//
//  loader.c
//  Icy
//
//  Created by Albert Lin on 7/17/11.
//  Copyright 2011 hyp. All rights reserved.
//
#include <stdio.h>
#include <string.h>
#include <sys/unistd.h>


int main(int argc, char *argv[]) 
{
	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
	NSString* string = [[NSBundle mainBundle] pathForResource:@"Frosty" ofType:nil];
	
    argv[0] = (char*)[string UTF8String];
    execve([string UTF8String], argv, NULL);
    
	[pool release];
	return 0;
}